#ifndef UNIFORMBLOCK_SAMPLE_H
#define UNIFORMBLOCK_SAMPLE_H
#include "SampleBase.h"
#include "glslprogram.h"
#include "glm\glm.hpp"
namespace ShaderLab {
	class UniformBlockSample : public SampleBase {
	public:
		UniformBlockSample();
		~UniformBlockSample();

		void Init();
		void Update(float time);
		void Render();
		void Imgui();
		void ShutDown();
	private:
		void Compile();
		void CreateUBO();
	private:
		GLSLProgram program;
		GLuint vao;

		glm::vec4 innerColor;
		glm::vec4 outerColor;
		float innerRadius;
		float outerRadius;
		glm::mat4 model, view, projection;
	};
}
#endif
